using System;
using ns27;
using Triton.Game.Mono;

namespace Triton.Game.Mapping
{
	[Attribute38("BreakingNews")]
	public class BreakingNews : MonoBehaviour
	{
		public enum Status
		{
			Fetching,
			Available,
			TimedOut
		}

		public static bool SHOWS_BREAKING_NEWS => MonoClass.smethod_6<bool>(TritonHs.MainAssemblyPath, "", "BreakingNews", "SHOWS_BREAKING_NEWS");

		public Status m_status => method_2<Status>("m_status");

		public string m_text => method_4("m_text");

		public string m_error => method_4("m_error");

		public float m_timeFetched => method_2<float>("m_timeFetched");

		public static float TIMEOUT => MonoClass.smethod_6<float>(TritonHs.MainAssemblyPath, "", "BreakingNews", "TIMEOUT");

		public static bool ShouldShowForCurrentPlatform => MonoClass.smethod_14<bool>(TritonHs.MainAssemblyPath, "", "BreakingNews", "get_ShouldShowForCurrentPlatform", Array.Empty<object>());

		public BreakingNews(IntPtr address, string className)
			: base(address, className)
		{
		}

		public BreakingNews(IntPtr address)
			: this(address, "BreakingNews")
		{
		}

		public static BreakingNews Get()
		{
			return MonoClass.smethod_15<BreakingNews>(TritonHs.MainAssemblyPath, "", "BreakingNews", "Get", Array.Empty<object>());
		}

		public void Awake()
		{
			method_8("Awake");
		}

		public void OnDestroy()
		{
			method_8("OnDestroy");
		}

		public Status GetStatus()
		{
			return method_11<Status>("GetStatus", Array.Empty<object>());
		}

		public void Fetch()
		{
			method_8("Fetch");
		}

		public void OnBreakingNewsResponse(string response)
		{
			method_8("OnBreakingNewsResponse", response);
		}

		public void OnBreakingNewsError(string error)
		{
			method_8("OnBreakingNewsError", error);
		}

		public string GetText()
		{
			return method_13("GetText");
		}

		public string GetError()
		{
			return method_13("GetError");
		}
	}
}
